package com.mtons.mblog.modules.rabbitmq;

import java.io.Serializable;

/**
 * @ClassName: PostMqMessage
 * @Auther: Jerry
 * @Date: 2020/5/15 14:54
 * @Desctiption: TODO
 * @Version: 1.0
 */
public class PostMqMessage implements Serializable {
    private static final long serialVersionUID = 4040777512065373934L;
    /**
     * 消息生产者Id
     */
    private long fromUserId;

    /**
     * 消息消费者Id
     */
    private long toUserId;

    /**
     * 消息类型
     */
    private int event;

    /**
     * 相关文章Id
     */
    private long postId;

    /**
     * 如果是回复评论 回复的评论Id
     */
    private long commentParentId;

    public long getFromUserId() {
        return fromUserId;
    }

    public void setFromUserId(long fromUserId) {
        this.fromUserId = fromUserId;
    }

    public long getToUserId() {
        return toUserId;
    }

    public void setToUserId(long toUserId) {
        this.toUserId = toUserId;
    }

    public int getEvent() {
        return event;
    }

    public void setEvent(int event) {
        this.event = event;
    }

    public long getPostId() {
        return postId;
    }

    public void setPostId(long postId) {
        this.postId = postId;
    }

    public long getCommentParentId() {
        return commentParentId;
    }

    public void setCommentParentId(long commentParentId) {
        this.commentParentId = commentParentId;
    }

    public PostMqMessage() {
    }

    public PostMqMessage(long fromUserId, int event, long postId){
        this.fromUserId = fromUserId;
        this.event = event;
        this.postId = postId;
    }

    public PostMqMessage(long fromUserId, int event, long postId, long commentParentId){
        this.fromUserId = fromUserId;
        this.event = event;
        this.postId = postId;
        this.commentParentId = commentParentId;
    }

}
